package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNight;
import com.api.shopapi.mapper.NursingSchedulingNightMapper;
import com.api.shopapi.service.NursingSchedulingNightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("NursingSchedulingNightServiceImplOne")
public class NursingSchedulingNightServiceImpl implements NursingSchedulingNightService {
    @Autowired
    private NursingSchedulingNightMapper nursingSchedulingNightMapper;


    @Override
    public int insert(NursingSchedulingNight nursingSchedulingNight) {
        return nursingSchedulingNightMapper.insert(nursingSchedulingNight);
    }

    @Override
    public int updateByNursingSchedulingNightCode(NursingSchedulingNight nursingSchedulingNight) {
        return nursingSchedulingNightMapper.updateByNursingSchedulingNightCode(nursingSchedulingNight);
    }

    @Override
    public int deleteByNursingSchedulingNightCode(String nursingSchedulingNightCode) {
        return nursingSchedulingNightMapper.deleteByNursingSchedulingNightCode(nursingSchedulingNightCode);
    }

    @Override
    public NursingSchedulingNight getByNursingSchedulingNightCode(String nursingSchedulingNightCode) {
        return nursingSchedulingNightMapper.getByNursingSchedulingNightCode(nursingSchedulingNightCode);
    }

    @Override
    public NursingSchedulingNight getByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingNightMapper.getByNursingSchedulingCode(nursingSchedulingCode);
    }
}
